package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CwParkingMapper;
import com.ruoyi.system.domain.CwParking;
import com.ruoyi.system.service.ICwParkingService;

/**
 * 车位费Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-11-29
 */
@Service
public class CwParkingServiceImpl implements ICwParkingService 
{
    @Autowired
    private CwParkingMapper cwParkingMapper;

    /**
     * 查询车位费
     * 
     * @param pid 车位费主键
     * @return 车位费
     */
    @Override
    public CwParking selectCwParkingByPid(Long pid)
    {
        return cwParkingMapper.selectCwParkingByPid(pid);
    }

    /**
     * 查询车位费列表
     * 
     * @param cwParking 车位费
     * @return 车位费
     */
    @Override
    public List<CwParking> selectCwParkingList(CwParking cwParking)
    {
        return cwParkingMapper.selectCwParkingList(cwParking);
    }

    /**
     * 新增车位费
     * 
     * @param cwParking 车位费
     * @return 结果
     */
    @Override
    public int insertCwParking(CwParking cwParking)
    {
        return cwParkingMapper.insertCwParking(cwParking);
    }

    /**
     * 修改车位费
     * 
     * @param cwParking 车位费
     * @return 结果
     */
    @Override
    public int updateCwParking(CwParking cwParking)
    {
        return cwParkingMapper.updateCwParking(cwParking);
    }

    /**
     * 批量删除车位费
     * 
     * @param pids 需要删除的车位费主键
     * @return 结果
     */
    @Override
    public int deleteCwParkingByPids(Long[] pids)
    {
        return cwParkingMapper.deleteCwParkingByPids(pids);
    }

    /**
     * 删除车位费信息
     * 
     * @param pid 车位费主键
     * @return 结果
     */
    @Override
    public int deleteCwParkingByPid(Long pid)
    {
        return cwParkingMapper.deleteCwParkingByPid(pid);
    }
}
